package com.me.bbs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author lm
 * @since 2023-01-22
 */
@TableName("forum_following")
@ApiModel(value = "ForumFollowing对象", description = "")
public class ForumFollowing implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long forum;

    private Long user;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getForum() {
        return forum;
    }

    public void setForum(Long forum) {
        this.forum = forum;
    }

    public Long getUser() {
        return user;
    }

    public void setUser(Long user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "ForumFollowing{" +
            "id = " + id +
            ", forum = " + forum +
            ", user = " + user +
        "}";
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }

    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }
}
